<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mdname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mdname" data-rule="required" class="form-control" name="row[mdname]" type="text" value="{$row.mdname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('运营类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {foreach name="typeList" item="vo"}
            <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="$row.type"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门店店长')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deerhome_user_id" 
            placeholder="输入UID/姓名/手机号搜索"
            data-source="deerhome/user/index"
            data-primaryKey="id"
            data-field="utel"
            data-order-by="id"
            data-search-field="id,uname,utel"
            data-page-size="10"
            data-pagination="true"
            data-format-item="UID{id} / {uname} / {utel}"
             class="form-control selectpage" name="row[deerhome_user_id]" type="text" value="{$row.deerhome_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门店Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo_images" class="form-control" size="50" value="{$row.logo_images|htmlentities}" name="row[logo_images]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo_images" class="btn btn-danger faupload" data-input-id="c-logo_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-logo_images" class="btn btn-primary fachoose" data-input-id="c-logo_images" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-logo_images"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('营业时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" style="width:150px;">
                <span class="input-group-addon" ><i class="fa fa-clock-o"></i> 开始</span>
                <input id="c-open_time" placeholder="请选择"  class="form-control datetimepicker" data-date-format="HH:mm:00" value="{$row.open_time|htmlentities}" name="row[open_time]" type="text">
            </div>
            <div class="input-group"  style="width:150px; margin-top:10px;">
                <span class="input-group-addon" ><i class="fa fa-clock-o"></i> 结束</span>
                <input id="c-close_time" placeholder="请选择"  class="form-control datetimepicker" data-date-format="HH:mm:00" value="{$row.close_time|htmlentities}" name="row[close_time]" type="text">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门店区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address_face" data-toggle="city-picker" data-rule="required" placeholder="请选择"  class="form-control" value="{$row.address_face|htmlentities}" name="row[address_face]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('门店定位')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" >
                <span style="cursor: pointer;" class="input-group-addon" data-toggle="addresspicker" data-input-id="c-address" data-lat-id="c-latitude" data-lng-id="c-longitude"><i class="fa fa-map-marker"></i> 地图选择</span>
                <input id="c-address" placeholder="请点击左侧按钮选择"  class="form-control" value="{$row.address|htmlentities}" name="row[address]" type="text">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
